using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FanDongping.Stock
{
    public partial class FmTradeConfig : Form
    {
        //StockData stockData;
        public FmTradeConfig()
        {
           // stockData = sd;
            InitializeComponent();
        }

        private void numericUpDown3_ValueChanged(object sender, EventArgs e)
        {

        }

        private void FmConfig_Load(object sender, EventArgs e)
        {
            numStameTaxRatio.Value = StockData.TradeConfig.StampTaxRatio;
            numTradeFeeRatioBuy.Value = StockData.TradeConfig.BuyTradeRatio;
            numTradeFeeRatioSell.Value = StockData.TradeConfig.SellTradeRatio;
            numOtherFee.Value = StockData.TradeConfig.OtherFee;

        }

        private void BtnSave_Click(object sender, EventArgs e)
        {
            StockData.TradeConfig.StampTaxRatio = numStameTaxRatio.Value;
            StockData.TradeConfig.BuyTradeRatio = numTradeFeeRatioBuy.Value;
            StockData.TradeConfig.SellTradeRatio = numTradeFeeRatioSell.Value;
            StockData.TradeConfig.OtherFee = numOtherFee.Value;
        }

        private void numOtherFee_ValueChanged(object sender, EventArgs e)
        {

        }

        private void numStameTaxRatio_ValueChanged(object sender, EventArgs e)
        {

        }
    }
}